package com.baor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_schedule")
public class ScheduleVo {

    @TableId(type = IdType.AUTO)
    private String scheduleId;
    private String subjectId;
    private String teacherId;
    private String courseId;
    private String weekId;
    private String classId;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ScheduleVo)) return false;
        ScheduleVo that = (ScheduleVo) o;
        return Objects.equals(teacherId, that.teacherId) && Objects.equals(courseId, that.courseId) && Objects.equals(weekId, that.weekId);
    }

}
